﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NIIT.Domain.RegisteredInfo>" %>

<%@  Register Assembly="MSCaptcha"  Namespace="MSCaptcha" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AddRegistered
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>AddRegistered</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        <fieldset>
            <legend>Thông Tin Khoá Học</legend>
            <div class="editor-field">
                <span class="editor-label">Khoá Học</span>
                <%=Html.DropDownList("CourseNames",ViewData["CourseName"] as SelectList) %>
            </div>
            <div class="editor-field">
                <span class="editor-label">Trung tâm:</span>
                <%=Html.DropDownList("CenterNames",ViewData["CenterNames"] as SelectList) %>
            </div>
            <div class="editor-field">
                <span class="editor-label">Ngày giờ học</span>
                <%=Html.DropDownList("DaySchool",ViewData["DaySchool"] as SelectList) %>
            </div>
            <div class="editor-field">
                <span class="editor-label">Khai giảng</span>
                <%=Html.DropDownList("DayOpen",ViewData["DayOpen"] as SelectList) %>
            </div>
        </fieldset>
        <fieldset>
            <legend>Thông Tin Đăng Ký</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.FullName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FullName) %>
                <%: Html.ValidationMessageFor(model => model.FullName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BirthDay) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BirthDay) %>
                <%: Html.ValidationMessageFor(model => model.BirthDay) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Address) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Address) %>
                <%: Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PhoneNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PhoneNumber) %>
                <%: Html.ValidationMessageFor(model => model.PhoneNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.HowKnowNIIT) %>
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("HowToKnow",ViewData["HowToKnow"] as SelectList)%>
            </div>
            <div>
                <span>Mã xác nhận:</span>
                <cc1:CaptchaControl ID="CaptchaControl1" runat="server" Height="60" 
                        Width="200" CaptchaLength="5" CaptchaBackgroundNoise="Extreme"
                        CaptchaLineNoise="None" CaptchaMinTimeout="5" CaptchaMaxTimeout="240"/>
                        
            </div>
            <div class="editor-field">
                <%:Html.TextBox("txtCaptchar") %>
            </div>
            <p>
                <input type="submit" value="Đăng Ký" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>















